﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Template.Master"
    Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    修改密码
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div region="center" style="width: 500px; height: 100%; padding: 1px; position: relative;
        overflow-y: auto">
        <div id="jqeasyui-form" style="height: 100%; position: relative;">
            <form action="<%=Url.Action("ChangePassword") %>" method="POST">
            <fieldset>
                <p>
                    <label>
                        原密码:</label>
                    <input type="password" name="oldPassword" value=""  validType="length[4,32]" class="easyui-validatebox" required="true" />
                </p>
                <p>
                    <label>
                        新密码:</label>
                    <input type="password" id="newPassword" name="newPassword" value="" validType="length[4,32]" class="easyui-validatebox" required="true" />
                </p>
                <p>
                    <label>
                        确认新密码:</label>
                    <input type="password" name="confirmPasswor" value="" required="true" class="easyui-validatebox"  validType="equalTo['#newPassword']" invalidMessage="两次输入密码不匹配"/>
                </p>
                <p>
                    <label>
                        &nbsp;</label>
                    <input type="submit" value="修改" /></p>
            </fieldset>
            </form>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $.extend($.fn.validatebox.defaults.rules, {
                /*必须和某个字段相等*/
                equalTo: {
                    validator: function (value, param) {
                        return $(param[0]).val() == value;
                    },
                    message: '字段不匹配'
                }

            });



        });


    </script>
</asp:Content>
